package jiekou.homework;

/**
 * 盗贼
 */
public class Robber extends Role implements Rob,Attack,SelfIntroduce{
    private Defend defend;

    public Robber() {
    }

    public Robber(String name, int level) {
        super(name, level);
    }

    @Override
    public void attack() {
        System.out.println(this.getName() + "说：我可以进行攻击");
    }

    @Override
    public void Rob() {
        System.out.println(this.getName() + "说：我可以进行偷盗");
    }

    @Override
    public void selfintroduce() {
        System.out.println("你好我是'" + this.getName() + "'，我是一名盗贼，等级" + this.getLevel());
    }
}
